<?php

class action extends app
{

public function addpages()
{
	$args = $this->ev->get('args');
			$args['examsetting'] = $args['examsetting'];
			$args['examauthorid'] = $this->_user['sessionuserid'];
			$args['examauthor'] = $this->_user['sessionusername'];
			$args['examtype'] = 1;

			foreach($args['examsetting']['questype'] as $key => $p)
			{
				if(!$args['examsetting']['questypelite'][$key])
				{
					unset($args['examsetting']['questype'][$key],$args['examquestions'][$key]);
				}
			}
             //var_dump($args);
			// exit;
			$this->exam->addExamSetting($args);
}



}


?>